package com.xinhe.web.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "地址详情")
@Table(name = "tb_address")
public class Address {
    @Id
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("会员id")
    private Long userId;
    @ApiModelProperty("姓名")
    private String name;
    @ApiModelProperty("手机号")
    private String telephone;
    @ApiModelProperty("省Id")
    private Long provinceId;
    @ApiModelProperty("市Id")
    private Long cityId;
    @ApiModelProperty("区id")
    private Long areaId;
    @ApiModelProperty("详细地址")
    private String detail;
    @ApiModelProperty("省")
    private String province;
    @ApiModelProperty("市")
    private String city;
    @ApiModelProperty("区")
    private String area;
    @ApiModelProperty("是否默认")
    private Integer isDefault;
}
